package com.zmj.sy.mom.srv.aps.controller;

import com.zmj.sy.mom.srv.aps.bean.entity.base.BaseConfig;
import com.zmj.sy.mom.srv.aps.bean.vo.base.BaseListResVo;
import com.zmj.sy.mom.srv.aps.service.BaseConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@Api(tags = "基础配置")
@RestController
@RequestMapping("/baseConfig")
public class BaseConfigController {

    private final BaseConfigService baseConfigService;

    @ApiOperation("默认钢板信息获取")
    @PostMapping("/plateConfig")
    public BaseListResVo<BaseConfig> plateConfig() {
        return baseConfigService.plateConfig();
    }

}
